-
-
Notifications
You must be signed in to change notification settings - Fork 33k
gh-139653: Add PyUnstable_ThreadState_SetStack() #139668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This generally matches what I came up with :) The start argument might be confusing, as the place usage grows towards. |
Good!
APIs like
|
On systems like musl that just set
Would it be better to save the results of the initial |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The API looks good, but it can fail in a couple of ways.
When you're done making the requested changes, leave the comment: |
I have made the requested changes; please review again. |
Thanks for making the requested changes! @markshannon: please review the changes made to this pull request. |
Can we please merge #139294 first before we add stuff on top of it? |
Yes. I approved your PR. |
Add PyUnstable_ThreadState_SetStack() and PyUnstable_ThreadState_ResetStack() functions to set the stack base address and stack size of a Python thread state.
Oh, TSan CI now fails with:
|
Fixed. |
Add PyUnstable_ThreadState_SetStack() and
PyUnstable_ThreadState_ResetStack() functions to set the stack base address and stack size of a Python thread state.
📚 Documentation preview 📚: https://cpython-previews--139668.org.readthedocs.build/